/**
 * Created by Wmerake on 2016-06-01.
 */
$(document).ready(function () {
    // alert("Aloha World!");
    var param = window.location.href;
    if(param.indexOf("deviceid")>=0 && param.indexOf("version")>=0 && param.indexOf("loginmobile")>=0){
        checkCode(param);
    }

});
function checkCode(param) {
    var WT_CID = $.url.param("deviceid");
    var WT_AV =$.url.param("version");
    var user_info =$.url.param("loginmobile");
    var platform =$.url.param("platform");
    $("Meta[name='WT.cid']").prop("content",WT_CID);

    //Modified by Wmerake on 2016-06-24 修改插码所需要的手机版本号
    if (platform == 'android') {
        $("Meta[name='WT.av']").prop("content", "Android_" + WT_AV);
    } else if (platform == 'iphone') {
        $("Meta[name='WT.av']").prop("content", "IOS_" + WT_AV);
    }

    $("Meta[name='WT.mobile']").prop("content",user_info);


}




